export const getTabInfo = (tab, good, top, isClass) => {
  let str = '';
  let className = '';
  if (top) {
      str = '置顶';
      className = 'top';
  } else if (good) {
      str = '精华';
      className = 'good';
  } else {
    if (names[tab]) {
      str = names[tab]
      className = tab
    } else {
      str = '暂无';
      className = 'default';
    }
  }
  return isClass ? className : str;
}
const names = {
  all: '所有',
  good: '精华',
  share: '分享',
  ask: '问答',
  job: '招聘',
  dev: '测试',
}
export default names